<div class="crumb-wrap">
    <div class="crumb-list"> <i class="icon-font"></i>
        <a href="<?=site_url()?>">首页</a>
        <span class="crumb-step">&gt;</span>
        <a class="crumb-name" href="<?=site_url('order/index')?>">订单管理</a>
        <span class="crumb-step">&gt;</span>
        <span>提交订单</span>
    </div>
</div>
<div class="result-wrap">
    <div class="result-content">
        <form action="<?=site_url('order/user_update')?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
            <table class="insert-tab" width="100%">
                <tbody>
                    <tr>
                        <th width="120">订单ID：</th>
                        <td><?=$res['id']?></td>
                    </tr>
                    <tr>
                        <th width="120">购买项目：</th>
                        <td><a href="javascript:;" onclick="open_view('<?=site_url('article/show?aid='.$res_par['article_id'])?>')"><?=$res_par['title']?></a></td>
                    </tr>
                    <tr>
                        <th width="120">系统备注：</th>
                        <td><?=$res['remarks']?></td>
                    </tr>
                    <tr>
                        <th width="120">购买积分：</th>
                        <td><?=$res['price']?></td>
                    </tr>
                    <tr>
                        <th> <i class="require-red">*</i>
                            联系人：
                        </th>
                        <td>
                            <input class="common-text" name="user_name" size="30" value="<?=$_SESSION['uinfo']['name']?>" type="text"></td>
                    </tr>
                    <tr>
                        <th>
                            <i class="require-red">*</i>
                            联系电话：
                        </th>
                        <td>
                            <input class="common-text" name="user_phone" size="30" value="<?=$_SESSION['uinfo']['phone']?>" type="text">
                            <span>请务必准确填写，方便后期联系</span>
                        </td>
                    </tr>
                    <tr>
                        <th>备注：</th>
                        <td>
                            <textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="hidden" name="oid" value="<?=$res['id']?>">
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    function open_view(url){
        layer.open({
            type: 2,
            area: ['1000px', '800px'],
            fix: false, //不固定
            maxmin: true,
            title:'项目详情',
            content: url
        });
    }

    $('#myform').submit(function() {
        var index = layer.load(2);
        $(this).ajaxSubmit(function(data){
            layer.close(index);
            if(data == 1){
                layer.alert("操作成功！",{
                    icon:1,
                },function(){
                    history.go(-1);
                });
            }else{
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })
</script>